package br.unesp.demac.ccn2007.aulas5.ex01_swing;

//import java.awt.FlowLayout;
//import java.awt.GridLayout;
import java.awt.BorderLayout;

import javax.swing.*;

public class Exemplo2Gui extends JFrame{
	/**
	 *
	 */
	private static final long serialVersionUID = 1L;

	public Exemplo2Gui(){
		setTitle("Exemplo Null");
		setSize(300,300);
		getContentPane().setLayout(new BorderLayout());
		getContentPane().add(new JButton("Bot�o 1"), "North");
		getContentPane().add(new JButton("Bot�o 2"), "South");
		getContentPane().add(new JButton("Bot�o 3"), "East");
		getContentPane().add(new JButton("Bot�o 4"), "West");
		getContentPane().add(new JButton("Bot�o 5"), "Center");
		/*
		for (int i=0; i<13; i++){
			JButton b = new JButton("Botao"+ (i+1));
			//b.setBounds(10+i*90, 30, 80, 20);

			//b.setSize(80,20);
			//b.setLocation(10+i*90, 30);
			getContentPane().add(b);
		}
		*/
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setVisible(true);
	}

	public static void main(String args[]){
		@SuppressWarnings("unused")
		Exemplo2Gui janela = new Exemplo2Gui();
	}
}